
export function rendermenu(list) {
    var menus = list.map(v => {
        v.children = list.filter(e => e.Pid == v.id)
        return v
    }).filter(v => !v.Pid)


    return menus
}

